import {
  createStore
} from 'vuex'

export default createStore({
  state: {
    username: '呵呵'
  },
  getters: {
    newName: (state) => {
      return state.username + '666'
    }
  },
  mutations: {
    updateName(state, name) {
      state.username = name
    }
  },
  actions: {},
  modules: {}
})
